package com.kreedx.kdemo.module.contract;

import io.xujiaji.xmvp.contracts.XContract;

public interface SocketContract {
    interface View extends XContract.View {
       void upateState(Model.State state);
       void onMessage(int code,String msg);
    }

    interface Presenter extends XContract.Presenter {
        void init();
        void connect();
        void disconnect();
        void sendMessage(int code ,Object object);

    }

    interface Model extends XContract.Model {
        enum State {
            Disconnected, Connecting, Connected
        }
    }
}
